package com.it.asen;

import java.util.Scanner;

public class Array {

    public static void main(String[] args) {
/*
        System.out.println("数组遍历：");
        int [] arr = {10,12,5,2,23,56,58,88};
        for (int i = 0; i <arr.length ; i++) {
            System.out.println(arr[i]);
        }*/

        /*

        评为打分

         */
               Scanner scanner  = new Scanner(System.in);


               int []  arr1 =new int[6];



            for (int i = 0; i <arr1.length ; i++) {
                System.out.println("请输入你需要的数：" + (i + 1));
                int number = scanner.nextInt();
                if (number >= 0 & number <= 100) {
                    arr1[i] = number;
                } else {
                    System.out.println("你输入的有误");
                    i--;
                }
            }
                for (int i = 0; i <arr1.length ; i++) {
                    System.out.println(arr1[i]);
                }
        }
}
